﻿using System;
using System.Collections.Generic;
using System.Drawing;

namespace MapleLib.Examples.MapEditor
{
	public class WzFootholdObject : IWzDrawableObject
	{
		public Point LT;
		public Point RB;
		public WzMap map;

		public void drawObject(Graphics g)
		{
			Point drawLT = new Point(LT.X + map.cX, LT.Y + map.cY);
			Point drawRB = new Point(RB.X + map.cX, RB.Y + map.cY);
			g.DrawLine(new Pen(Color.Red, 2), drawLT, drawRB);
			g.FillRectangle(Brushes.Blue, new Rectangle(drawLT.X - 4, drawLT.Y - 4, 8, 8));
			g.FillRectangle(Brushes.Blue, new Rectangle(drawRB.X - 4, drawRB.Y - 4, 8, 8));
		}
	}
}
